import { IsNotEmpty, IsOptional, MaxLength } from 'class-validator';

export class UpdateExecutiveDto {
  @IsNotEmpty({ message: '高管ID不能为空' })
  id: number;

  @IsNotEmpty({ message: '高管姓名不能为空' })
  @MaxLength(255)
  name: string;

  @IsNotEmpty({ message: '学历不能为空' })
  @MaxLength(255)
  education: string;

  @IsNotEmpty({ message: '职位不能为空' })
  @MaxLength(255)
  position: string;

  photo: string;
}
